<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width" />
		<title></title>
		<style>
			html,
			body {
				margin: 0;
				height: 100%;
			}
		</style>
	</head>

	<body>
		<script>
			document.write(window.innerWidth);
			document.write("<br />");
			document.write(document.body.offsetHeight);
		</script>
	</body>

</html>